package com.example.demo.service.impl;

import com.example.demo.mapper.StudentLoginMapper;
import com.example.demo.mapper.StudentManageMapper;
import com.example.demo.mapper.entity.Student;
import com.example.demo.service.StudentLoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Lucy
 * @create 2024-01-28 20:43
 */
@Service
public class StudentLoginServiceImpl implements StudentLoginService{

    @Autowired
    private StudentLoginMapper mapper;

    @Override
    public Student selectStudentByNumber(String number) {
        return mapper.selectStudentByNumber(number);
    }

    @Override
    public Student selectStudentByPhone(String phone) { return mapper.selectStudentByPhone(phone); }

    @Override
    public Student selectStudentByIDCard(String identityCard) {
        return mapper.selectStudentByIDCard(identityCard);
    }

    @Override
    public int setPassword1(Student registerStudent) {
        return mapper.updateStudentPassword1(registerStudent);
    }
}
